import request from '@/utils/request'

export interface LoginForm {
  account:string
  password: string
}


export function getInfo (data: any) {
  return request({
    url: '/api/user/info',
    method: 'post',
    data
  })
}

export function login (account: any, password: any ) {
  return request({
    url: '/login',
    method: 'post',
    data: {
      grantType: 'businessPassword',
      accountType: 'businessAccount',
      account,
      password
    }
  })
}


export function getAppInfo (){
  return request({
    url: '/v1/system-application/info',
    method: 'get',
  })
}
